<template>
	<view class="main" @tap="pik">
		<view class="left">
			<image :src="zuixinbook.bookImg" mode=""></image>
		</view>
		<view class="right">
			<h3>{{zuixinbook.bookName}}</h3>
			<p>{{zuixinbook.bookIntro}}</p>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			}
		},
		props: {
			zuixinbook: {
				type: Object,
				required: true
			}
		},
		methods: {
			pik(){
				console.log(this.zuixinbook.bookId)
				uni.navigateTo({
					url:"/pages/bookdetailed/bookdetailed?id="+this.zuixinbook.bookId
				})
			}
		}
	}
</script>

<style>
	.main{
		background-color: white;
		height: 300rpx;
	}
	.right p{
		color: gray;
		overflow: hidden;
		display: -webkit-box;
		-webkit-line-clamp: 3;
		-webkit-box-orient: vertical;
		font-size: 26rpx;
	}
	.right h3{
		margin-top: 30rpx;
		margin-bottom: 20rpx;
	}
	.right{
		margin-left: 20rpx;
	}
	.main{
		display: flex;
	}
	.left image{
		width: 200rpx;
		height: 260rpx;
		border-radius: 10rpx;
	}
</style>
